package edu.tjut.tjutcommunity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.tjut.tjutcommunity.entity.PageResult;
import edu.tjut.tjutcommunity.entity.Post;
import edu.tjut.tjutcommunity.entity.Star;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author yhh
 * @since 2022-05-01
 */
public interface StarService extends IService<Star> {

    boolean star(Integer uid, Integer pid);


    PageResult<Post> myStar(Integer uid, Integer pageNo, String keyword);

    boolean unstar(Integer uid, Integer pid);

    boolean isStar(Integer uid, String pid);
}
